import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SystemSettingComponent } from './system-setting.component';
import {RouterModule} from "@angular/router";
import {RoleComponent} from "./role-module/role.component";
import {AccountComponent} from "./account-module/account.component";
import {RoleModule} from "./role-module/role.module";
import {AccountModule} from "./account-module/account.module";

@NgModule({
  imports: [
    CommonModule,
    RoleModule,
    AccountModule,
    RouterModule.forChild([
      {
        path: "system-setting",
        component: SystemSettingComponent,
        children: [
          {
            path: "role-manage",
            component: RoleComponent
          },
          {
            path: "account-manage",
            component: AccountComponent
          },
        ]
      }
    ])
  ],
  declarations: [SystemSettingComponent]
})
export class SystemSettingModule { }
